package com.hd.crdao.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.hd.crdao.R;
import com.hd.crdao.base.BaseSecondActivity;
import com.hd.crdao.utils.UIUtils;
import com.hd.crdao.view.ExpandHeadView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 *
 *@author Programming
 *@date 2017/6/15 0015
 */
public class AccountManagerActivity extends BaseSecondActivity {
    @BindView(R.id.myaccountmanager_head)
    ExpandHeadView mMyaccountManagerHead;
    @BindView(R.id.childaccount)
    TextView mChildAccount;
    @BindView(R.id.mychileaccount)
    TextView mMychildAccount;

    @Override
    protected void initView() {

    }

    @Override
    protected int setContentView() {
        return R.layout.activity_accountmanager;
    }

    @Override
    protected ExpandHeadView setExpandHeadView() {
        return mMyaccountManagerHead;
    }



    @OnClick({R.id.childaccount, R.id.mychileaccount})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.childaccount:     //绑定我的子账户
                startActivity(new Intent(UIUtils.getContext(),BindChildAccountActivity.class));

                break;
            case R.id.mychileaccount:       //我的子账户
                startActivity(new Intent(UIUtils.getContext(),MyChildAccountActivity.class));
                break;
        }
    }
}
